export default [
    {
        path: '/zgrscc/home',
        redirect: '/zgrscc/zgrsHome'
    },
    // {
    //   path: '/zxyh/home',
    //   redirect:'/zxyh/zhxykHome'
    // },
    {
        path: '/:channel',
        component: (resolve) => require(['./pages/channel.vue'], resolve),
        children: [
            {
                path: 'lookBack_particulars/:id',
                redirect: '/:channel/liveBack/:id',
            },
            {
                path: 'live_particulars/:ownerid/:roomid',
                children: [{
                    path: 'liveMsg',
                    redirect: '/:channel/liveRoom/:roomid',
                }]
            },
            {
                path: 'zxjtHome',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./zxjtPages/home.vue'], resolve) //中信建投视频专区调试
            },
            {
                path: 'zxyhHome',
                meta: {
                    keepAlive: true
                },
                //component: (resolve)=>require(['./zxyhPages/home.vue'],resolve)//中信银行首页
                component: (resolve) => require(['./zxyhPages/home.vue'], resolve) //中信银行20210406首页
            },
            {
                path: 'zyzqHome',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./zyzqPages/home.vue'], resolve) //中银证券首页
            },
            {
                path: 'zhxykHome',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./zhxykPages/home.vue'], resolve) //中行信用卡首页
            },
            {
                path: 'historyRecord',
                component: (resolve) => require(['./zhxykPages/my/historyRecord.vue'], resolve) //中行信用卡历史记录
            },
            {
                path: 'collectionRecord',
                component: (resolve) => require(['./zhxykPages/my/collectionRecord.vue'], resolve) //中行信用卡收藏/历史记录
            },
            {
                path: 'liveCalendar',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./zhxykPages/liveCalendar.vue'], resolve) //中行信用卡直播日历
            },
            {
                path: 'shortVideoDetail',
                component: (resolve) => require(['./zhxykPages/shortVideoDetail.vue'], resolve) //中行信用卡短视频详情
            },
            {
                path: 'myOrder',
                component: (resolve) => require(['./zhxykPages/my/myOrder.vue'], resolve) //中行信用卡我的预约
            },
            {
                path: 'myFocus',
                component: (resolve) => require(['./zhxykPages/my/myFocus.vue'], resolve) //中行信用卡我的关注
            },
            {
                path: 'myCollection',
                component: (resolve) => require(['./zhxykPages/my/myCollection.vue'], resolve) //中行信用卡我的收藏
            },
            {
                path: 'my',
                component: (resolve) => require(['./zhxykPages/my.vue'], resolve) //中行信用卡我的
            },
            {
                path: 'myCenter',
                component: (resolve) => require(['./zxjtPages/myCenter.vue'], resolve) //中信建投我的
            },
            {
                path: 'search',
                component: (resolve) => require(['./zxjtPages/search.vue'], resolve) //中信建投搜索页
            },
            {
                path: 'publicSelection',
                component: (resolve) => require(['./zxjtPages/publicSelection.vue'], resolve) //中信建投公募精选
            },
            {
                path: 'institutionPage',
                component: (resolve) => require(['./zxjtPages/institutionPage.vue'], resolve) //中信建投机构主页
            },
            {
                path: 'zgrsHome',
                component: (resolve) => require(['./zgrsPages/home.vue'], resolve) //中国人寿首页
            },
            {
                path: 'home',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./pages/home.vue'], resolve)
            },
            {
                path: 'videoRecommendationMore',
                component: (resolve) => require(['./pages/homeComponents/videoMore.vue'], resolve) //视频推荐更多页面
            },
            {
                path: 'privateText',
                component: (resolve) => require(['./pages/homeComponents/privacyText.vue'], resolve) //视频推荐更多页面
            },
            //错误页面
            {
                path: 'noEnterPage',
                component: (resolve) => require(['./pages/noEnterPage.vue'], resolve)
            },
            {
                path: 'liveComMore', //直播预告更多页面
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./pages/home/liveComMore.vue'], resolve)
            },
            {
                path: 'anchorComMore', //中银证券热门主播更多页面
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./zyzqPages/homeCom/anchorComMore.vue'], resolve)
            },
            {
                path: 'anchorComMoreZXYH', //中信信用卡中心明星主播更多页面
                component: (resolve) => require(['./zxxykzxPages/homeCom/anchorComMoreZXYH.vue'], resolve)
            },
            {
                path: 'anchorParticularsPage', //热门主播详情页面
                component: (resolve) => require(['./pages/home/anchorParticularsPage.vue'], resolve)
            },
            {
                path: 'liveMore',
                component: (resolve) => require(['./pages/liveMore.vue'], resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: 'geratMoreVideo', //精彩视频更多页面
                component: (resolve) => require(['./pages/home/greatMoreVideo.vue'], resolve),
                meta: {
                    keepAlive: true
                }
            },
            {
                path: 'liveMoreSearch',
                component: (resolve) => require(['./pages/liveMoreSearch.vue'], resolve),
            },
            {
                path: 'liveMoreSearchLPicRText',//中信银行二期的搜索结果页面, 调整为左图右文样式
                component: (resolve) => require(['./pages/liveMoreSearchLPicRText.vue'], resolve),
            },
            {
                path: 'smallVideo',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./pages/smallVideo.vue'], resolve),
            },
            {
                path: 'Mine',
                component: (resolve) => require(['./pages/Mine.vue'], resolve),
            },
            {
                path: 'geratMoVideo', //中银证券精彩视频更多页面
                component: (resolve) => require(['./zyzqPages/homeCom/greatMoVideo.vue'], resolve),
                meta: {
                    keepAlive: true
                }
            },
            // {
            //   path: 'liveRoom_zgrs/:roomid',
            //   component: (resolve)=>require(['./zgrsPages/liveCom/live_particulars.vue'],resolve),
            //   children: []
            // },
            //  {
            //   path: 'live_particulars_zgrs/:roomid',
            //   component: (resolve)=>require(['./zgrsPages/liveCom/live_particulars.vue'],resolve),
            //   children: []
            // },
            {
                path: 'mineAttention',
                component: (resolve) => require(['./pages/minePage/mineAttention.vue'], resolve),
            },
            {
                path: 'mineCollect',
                component: (resolve) => require(['./pages/minePage/mineCollect.vue'], resolve),
            },
            { //我的礼品奖品页面
                path: 'minePrizeListPage',
                component: (resolve) => require(['./pages/minePage/minePrizeListCom.vue'], resolve),
            },
            {
                path: 'liveStopPage',
                component: (resolve) => require(['./pages/liveStopPage.vue'], resolve)
            },
            {
                path: 'smallVideoPlayPage',
                component: (resolve) => require(['./pages/smallVideoPlayPage.vue'], resolve)
            },
            {
                path: 'invitationCard',
                component: (resolve) => require(['./pages/invitationCard/invitationCard.vue'], resolve)
            },
            {
                path: 'errorPage',
                component: (resolve) => require(['./pages/errorPage.vue'], resolve)
            },
            //填写手机号码组件
            {
                path: 'fillInPhone',
                component: (resolve) => require(['./pages/minePage/fillInPhone.vue'], resolve),
            },
            //更改个人信息
            {
                path: 'personalInfo',
                component: (resolve) => require(['./pages/minePage/personalInfo.vue'], resolve),
            },
            //更改手机号码父组件
            {
                path: 'changePhoneParent',
                component: (resolve) => require(['./pages/minePage/changePhoneParent.vue'], resolve),
            },
            //更改手机号码填写老的手机号码
            {
                path: 'addOldPhone',
                component: (resolve) => require(['./pages/minePage/addOldPhone.vue'], resolve),
                //       meta: {
                //          title: '更换手机号'
                //     }
            },
            //我的红包兑换组件
            {
                path: 'mineRedPacket',
                component: (resolve) => require(['./pages/minePage/mineRedPacket.vue'], resolve),
            },
            //每日汇评
            {
                path: 'dayComments',
                component: (resolve) => require(['./pages/dayComments.vue'], resolve),
            },
            //特色频道
            {
                path: 'featurePD',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./pages/featurePD.vue'], resolve),
            },
            {
                path: 'featureHome',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./pages/featurePages/featureHome.vue'], resolve),
            },
            //乐知教育主页面
            {
                path: 'educationHome',
                component: (resolve) => require(['./pages/featurePages/educationPage/educationHome.vue'], resolve),
                meta: {
                    keepAlive: true
                },
            },
            //乐知教育省会选择页面
            {
                path: 'selectProvince',
                component: (resolve) => require(['./pages/featurePages/educationPage/selectProvince.vue'], resolve),
            },
            //乐知教育导航二级菜单页面
            {
                path: 'secondMenu',
                component: (resolve) => require(['./pages/featurePages/educationPage/secondMenu.vue'], resolve),
            },
            //特色频道子页面
            {
                path: 'featurePD_child',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./pages/featurePD_child.vue'], resolve),
            },
            {
                path: 'bannerLink',
                component: (resolve) => require(['./pages/bannerLink.vue'], resolve),
            },
            { //内容展示组件
                path: 'connectShow',
                component: (resolve) => require(['./pages/connectShow.vue'], resolve),
            },
            { //根据id 获取视频播放信息  背景黑色视频居中
                path: 'videoMiddleBgBlackPlay',
                component: (resolve) => require(['./pages/videoPlayBgBlack.vue'], resolve),
            },
            {
                path: 'watchHistory',
                component: (resolve) => require(['./pages/minePage/watchHistory'], resolve)
            },
            // 中信信用卡中心 频道页面
            {
                path: 'freChannel',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./zxxykzxPages/freChannel.vue'], resolve)
            },
            // 中信信用卡中心 频道搜索结果页面
            {
                path: 'searchResult',
                component: (resolve) => require(['./zxxykzxPages/freChannel/searchResult.vue'], resolve)
            },
            //中信信用卡中心精彩视频更多页面
            {
                path: 'moreVideo',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./zxxykzxPages/homeCom/moreVideo.vue'], resolve),

            },
            //中信信用卡频道组件更多组件
            {
                path: 'listComMore',
                component: (resolve) => require(['./zxxykzxPages/freChannel/listComMore.vue'], resolve),
            },
            // 中信银行 频道页面
            {
                path: 'telChannel',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./zxyhPages/telChannel.vue'], resolve)
            },
            //中信银行频道组件更多组件
            {
                path: 'telMore',
                component: (resolve) => require(['./zxyhPages/freChannel/telMore.vue'], resolve),
            },
            //中信银行明星主播更多
            {
                path: 'starAnchorMore',
                meta: {
                    keepAlive: true
                },
                component: (resolve) => require(['./zxyhPages/homeCom/starAnchorMore.vue'], resolve)
            },
            //中信银行精彩视频更多页面
            {
                path: 'geratVideoMore',
                component: (resolve) => require(['./zxyhPages/homeCom/geratVideoMore.vue'], resolve),
                meta: {
                    keepAlive: true
                }
            },
            // 中信银行 频道搜索结果页面
            {
                path: 'telResult',
                component: (resolve) => require(['./zxyhPages/freChannel/telResult.vue'], resolve)
            },
            {
                path: 'order',
                component: (resolve) => require(['./zxyhPages/my/myOrder.vue'], resolve) //中信银行我的预约
            },
            //民生银行服务须知
            {
                path: 'serviceNotice',
                component: (resolve) => require(['./msyhPages/serviceNotice.vue'], resolve),
            },
            //新版本路由
            { //直播间
                path: 'liveRoom/:roomid',
                // component: (resolve)=>require(['./pages/liveRoomPages/liveRoom'],resolve)
                component: (resolve) => {
                    if (channel === 'zgrscc') {
                        require(['./zgrsPages/liveCom/live_particulars.vue'], resolve)
                    } else {
                        require(['./pages/liveRoomPages/liveRoom'], resolve)
                    }
                }
            },
            { //直播间
                path: 'liveBack/:id',
                component: (resolve) => require(['./pages/liveBackPages/liveBack'], resolve)
            },
            {
                path: 'privacyContent',
                component: (resolve) => require(['./pages/homeComponents/privacyText.vue'], resolve) //建投期货 隐私条款
            },
            /* 付费课程 */
            // 精品课程
            {
                path: 'niceCourse',
                component: () => import('./pages/niceCourse.vue'),
            },
            // 系列课程
            {
                path: 'courseDetail',
                component: () => import('./pages/courseDetail.vue'),
            },
            // 我的订购
            {
                path: 'mineOrder',
                component: () => import('./pages/mineOrder.vue'),
            },
            {
                path: 'mineSafety',
                meta: {
                    keepAlive: false
                },
                component: (resolve) => require(['./pages/minePage/mineSafety.vue'], resolve)
            },
            {
                path: 'logout',
                meta: {
                    keepAlive: false
                },
                component: (resolve) => require(['./pages/minePage/logout.vue'], resolve)
            }
        ]
    }
]
